package com.wjh.mirna.controller;

import com.wjh.mirna.dao.LncrnaDao;
import com.wjh.mirna.http.Response;
import com.wjh.mirna.model.Lncrna;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/lncrna")
public class LncrnaController {
    @Autowired
    LncrnaDao lncrnaDao;
    @GetMapping("/queryLname")
    public Response queryLname(Lncrna lncrna){
        List<Lncrna> lncrnas = lncrnaDao.selectLname(lncrna);
        return  Response.ok(lncrnas);
    }
}
